﻿package app.view.events
{
	import flash.events.Event;
	/**
	 * Кастомные события для image
	 * @author Dmitryi_Koruagin, icq:585466579, dmitryikoruagin@yandex.ru
	 */
	public class ImageEvent extends Event
	{
		
		public static const IMAGE_LOAD:String = 'image_load';
		public static const IMAGE_SHOW:String = 'image_show';
		
		public var data:Object;
		public var id:Number;
		
		
		public function ImageEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
		} 
		
		public override function clone():Event 
		{ 
			return new ImageEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ImageEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
	}

}